package com.yanlight.test;

import com.yanlight.util.*;
import okhttp3.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;


public class UploadDemo {
    private static final Logger logger = LoggerFactory.getLogger(UploadDemo.class);

    private static final String mchId = "1540792691";
    private static final String mchKey = "97215d2089b1458bb78b6f2e27ccc6f4";
    private static final String certPath = "/Users/wang/Desktop/炎光科技/trade/微信秘钥/服务商/cert/apiclient_cert.p12";

    private static final MediaType MEDIA_TYPE_PNG = MediaType.parse("image/png");
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String USER_AGENT = "User-Agent";

    public static String uploadUrl = "https://api.mch.weixin.qq.com/secapi/mch/uploadmedia";


    public static void main(String[] args) {
        File file = new File("/Users/wang/Desktop/炎光科技/logo/yanlight_logo.png");
        WxRequestUtil.upload(file, mchId, uploadUrl, mchKey);
    }


}

